package cnpm02.j2ee.group3.logic.dao.impl;

import javax.ejb.Local;

import cnpm02.j2ee.group3.logic.dao.generic.AbstractTranslationEntityDao;
import cnpm02.j2ee.group3.model.CityTranslation;

/**
 * Dao for {@link CityTranslation}
 * @author BINH
 * @version 1.0
 */
@Local
public interface CityTranslationDao extends
		AbstractTranslationEntityDao<CityTranslation> {
	final String COMPONENT_NAME = "cityTranslationDao";
	final String SELECT_ALL_QUERY = "from CityTranslation";
	final String SELECT_ALL_BY_LOCALE_QUERY = "from CityTranslation ct where ct.supportedLanguage = :supportedLanguage order by ct.translation";
	final String SELECT_ENTITY_BY_LOCALE_QUERY = "from CityTranslation ct where ct.city = :city and ct.supportedLanguage = :supportedLanguage";
}
